<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" >
    <title>1</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="bootstrap/css/bootstrap-datetimepicker.min.css" >
</head>




<div class="container">
    <div class="row" th:insert="public.html :: head"></div>
    <!--顶部导航-->
    <div class="row" th:insert="public.html :: public_top">
    </div>
    <br />
    <!--内容-->
    <div class="row">
        <div class="col-sm-2" th:insert="public.html :: public_left_student">
        </div>
        <div class="col-xs-9 col-md-10">
            <form action="AddStudentServlet" method="post">
                <div class="form-group">
                    <label for="exampleInputEmail1">学生姓名</label>
                    <input type="text" class="form-control" name="name" id="exampleInputEmail1" aria-describedby="emailHelp">
                    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">密码</label>
                    <input type="password" class="form-control" name="password" id="exampleInputPassword1">
                </div>
                <div class="form-group">
                    <label for="inlineRadio1">性别</label>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="sex" id="inlineRadio1" value="0" checked>
                        <label class="form-check-label" for="inlineRadio1">男</label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="sex" id="inlineRadio2" value="1">
                        <label class="form-check-label" for="inlineRadio2">女</label>
                    </div>
                </div>
                <div class="form-group">
                    <label for="clazz">班级</label>
                    <input type="text" class="form-control" name="clazz" id="clazz">
                </div>
                <div class="form-group">
                    <label for="birthday">生日</label>
                    <div class="input-group date form_date col-md-5" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                        <input class="form-control" name="birthday" id="birthday" size="16" type="text" value="" readonly>
                        <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    </div>

                </div>

                <div class="row">

                <button type="submit" class="btn btn-primary">新增学生</button>
                </div>
            </form>


        </div>
    </div>
</div>
        </body>
<script type="text/javascript" src="bootstrap/js/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>


<script src="bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script  src="bootstrap/js/locales/bootstrap-datetimepicker.zh-CN.js" ></script>
<script type="text/javascript">
    $('.form_datetime').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1
    });
    $('.form_date').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        minView: 2,
        forceParse: 0
    });
    $('.form_time').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 1,
        minView: 0,
        maxView: 1,
        forceParse: 0
    });
</script>


</html>